/*
8 1 2
7   3
6 5 4
*/
export function angleIndex(index:number)
{
    switch(index)
    {
        case 0:
        case 15:
            return RIGHT;
        case 1:
        case 2:
            return BOTTOM_RIGHT;
        case 3:
        case 4:
            return BOTTOM;
        case 5:
        case 6:
            return BOTTOM_LEFT;
        case 7:
        case 8:
            return LEFT;
        case 9:
        case 10:
            return TOP_LEFT;
        case 11:
        case 12:
            return TOP;
        case 13:
        case 14:
            return TOP_RIGHT;
    }
    global.Log.Error(`角度计算错误 ${index}`);
    return TOP;
}
export const movedirection:Record<DirectionConstant,DirectionConstant[]>={
    5:[5,6,4,7,3],
    6:[6,7,5,8,4],
    7:[7,8,6,1,5],
    8:[8,1,7,2,6],
    1:[1,2,8,3,7],
    2:[2,3,1,4,8],
    3:[3,4,2,5,1],
    4:[4,5,3,6,2],
} as any;
